package com.ruoyi.project.locationarea.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.locationarea.mapper.LocationAreaMapper;
import com.ruoyi.project.locationarea.domain.LocationArea;
import com.ruoyi.project.locationarea.service.ILocationAreaService;
import com.ruoyi.common.core.text.Convert;

/**
 * 小车地图Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-14
 */
@Service
public class LocationAreaServiceImpl implements ILocationAreaService 
{
    @Autowired
    private LocationAreaMapper locationAreaMapper;

    /**
     * 查询小车地图
     * 
     * @param id 小车地图主键
     * @return 小车地图
     */
    @Override
    public LocationArea selectLocationAreaById(Long id)
    {
        return locationAreaMapper.selectLocationAreaById(id);
    }

    /**
     * 查询小车地图列表
     * 
     * @param locationArea 小车地图
     * @return 小车地图
     */
    @Override
    public List<LocationArea> selectLocationAreaList(LocationArea locationArea)
    {
        return locationAreaMapper.selectLocationAreaList(locationArea);
    }

    /**
     * 新增小车地图
     * 
     * @param locationArea 小车地图
     * @return 结果
     */
    @Override
    public int insertLocationArea(LocationArea locationArea)
    {
        return locationAreaMapper.insertLocationArea(locationArea);
    }

    /**
     * 修改小车地图
     * 
     * @param locationArea 小车地图
     * @return 结果
     */
    @Override
    public int updateLocationArea(LocationArea locationArea)
    {
        return locationAreaMapper.updateLocationArea(locationArea);
    }

    /**
     * 批量删除小车地图
     * 
     * @param ids 需要删除的小车地图主键
     * @return 结果
     */
    @Override
    public int deleteLocationAreaByIds(String ids)
    {
        return locationAreaMapper.deleteLocationAreaByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除小车地图信息
     * 
     * @param id 小车地图主键
     * @return 结果
     */
    @Override
    public int deleteLocationAreaById(Long id)
    {
        return locationAreaMapper.deleteLocationAreaById(id);
    }
}
